Optimal. Leaf size=53 \[ \frac {A b-a B}{a b \sqrt {a+b x^2}}-\frac {A \tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right )}{a^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 53, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {457, 79, 65,
214} \begin {gather*} \frac {A b-a B}{a b \sqrt {a+b x^2}}-\frac {A \tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right )}{a^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 79
Rule 214
Rule 457
Rubi steps
\begin {align*} \int \frac {A+B x^2}{x \left (a+b x^2\right )^{3/2}} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {A+B x}{x (a+b x)^{3/2}} \, dx,x,x^2\right )\\ &=\frac {A b-a B}{a b \sqrt {a+b x^2}}+\frac {A \text {Subst}\left (\int \frac {1}{x \sqrt {a+b x}} \, dx,x,x^2\right )}{2 a}\\ &=\frac {A b-a B}{a b \sqrt {a+b x^2}}+\frac {A \text {Subst}\left (\int \frac {1}{-\frac {a}{b}+\frac {x^2}{b}} \, dx,x,\sqrt {a+b x^2}\right )}{a b}\\ &=\frac {A b-a B}{a b \sqrt {a+b x^2}}-\frac {A \tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right )}{a^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 53, normalized size = 1.00 \begin {gather*} \frac {A b-a B}{a b \sqrt {a+b x^2}}-\frac {A \tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right )}{a^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.09, size = 61, normalized size = 1.15
method | result | size |
default | \(-\frac {B}{b \sqrt {b \,x^{2}+a}}+A \left (\frac {1}{a \sqrt {b \,x^{2}+a}}-\frac {\ln \left (\frac {2 a +2 \sqrt {a}\, \sqrt {b \,x^{2}+a}}{x}\right )}{a^{\frac {3}{2}}}\right )\) | \(61\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 48, normalized size = 0.91 \begin {gather*} -\frac {A \operatorname {arsinh}\left (\frac {a}{\sqrt {a b} {\left | x \right |}}\right )}{a^{\frac {3}{2}}} + \frac {A}{\sqrt {b x^{2} + a} a} - \frac {B}{\sqrt {b x^{2} + a} b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.59, size = 167, normalized size = 3.15 \begin {gather*} \left [\frac {{\left (A b^{2} x^{2} + A a b\right )} \sqrt {a} \log \left (-\frac {b x^{2} - 2 \, \sqrt {b x^{2} + a} \sqrt {a} + 2 \, a}{x^{2}}\right ) - 2 \, {\left (B a^{2} - A a b\right )} \sqrt {b x^{2} + a}}{2 \, {\left (a^{2} b^{2} x^{2} + a^{3} b\right )}}, \frac {{\left (A b^{2} x^{2} + A a b\right )} \sqrt {-a} \arctan \left (\frac {\sqrt {-a}}{\sqrt {b x^{2} + a}}\right ) - {\left (B a^{2} - A a b\right )} \sqrt {b x^{2} + a}}{a^{2} b^{2} x^{2} + a^{3} b}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 7.57, size = 48, normalized size = 0.91 \begin {gather*} \frac {A \operatorname {atan}{\left (\frac {\sqrt {a + b x^{2}}}{\sqrt {- a}} \right )}}{a \sqrt {- a}} - \frac {- A b + B a}{a b \sqrt {a + b x^{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.14, size = 52, normalized size = 0.98 \begin {gather*} \frac {A \arctan \left (\frac {\sqrt {b x^{2} + a}}{\sqrt {-a}}\right )}{\sqrt {-a} a} - \frac {B a - A b}{\sqrt {b x^{2} + a} a b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.48, size = 50, normalized size = 0.94 \begin {gather*} \frac {A}{a\,\sqrt {b\,x^2+a}}-\frac {B}{b\,\sqrt {b\,x^2+a}}-\frac {A\,\mathrm {atanh}\left (\frac {\sqrt {b\,x^2+a}}{\sqrt {a}}\right )}{a^{3/2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________